package com.websuites.esb.repository;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

@SuppressWarnings("unchecked")
public class Forward 
{
	private String sName;
	private String sCode;
	private String sType;
	private String sPath;
	private String sReturn;
	private List<Route> listRoutes = new ArrayList<Route>();
	
	public String getName() 
	{
		return this.sName;
	}
	
	public void setCode(String sCode) 
	{
		this.sCode = sCode;
	}

	public String getCode() 
	{
		return this.sCode;
	}
	
	public void setName(String sName) 
	{
		this.sName = sName;
	}

	public String getType() 
	{
		return this.sType;
	}
	
	public void setType(String sType) 
	{
		this.sType = sType;
	}
	
	public String getPath() 
	{
		return this.sPath;
	}
	
	public void setPath(String sPath) 
	{
		this.sPath = sPath;
	}
	
	public String getReturn() 
	{
		return this.sReturn;
	}
	
	public void setReturn(String sReturn) 
	{
		this.sReturn = sReturn;
	}

	public void setRoutes(List<Route> listRoutes)
	{
		Iterator it = listRoutes.iterator();
		while (it.hasNext())
		{
			Route route = (Route)it.next();
			this.listRoutes.add(route);
		}
	}
	
	public Iterator getRoute()
	{
		return listRoutes.iterator();
	}
}
